
#include <iostream>
#include <algorithm>
using namespace std;

int main()
{
	int n;
	cin>>n;
	int *A = new int[n];
	for(int i=0;i<n;i++){
		cin>>A[i];
	}
	sort(&A[0],&A[n]);
	int m = n/2;
	long t_out = 0, t_in = 0;
	for( int i=0; i<m; i++ ){
		t_in += A[i];
	}
	for( int i=m; i<n; i++ ){
		t_out +=  A[i];
	}

	cout<<"Outgoing #: "<<n-m<<endl;
	cout<<"Introverted #: "<<m<<endl;
	cout<<"Diff = "<<t_out-t_in<<endl;

	return 0;
}
